home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / autolib / auto_dead_child.c next >
Encoding:
C/C++ Source or Header  |  1989-12-12  |  464 b   |  20 lines

  1. /*
  2. ### Close the pipe and let the notifier know if the child process dies ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6. #include <suntool/panel.h>
  7. #include <sunwindow/notify.h>
  8.  
  9. Notify_value auto_dead_child(item,pid,status,rusage)
  10. Panel_item item;
  11. int     pid;
  12. union wait *status;
  13. struct rusage *rusage;
  14. {
  15.     extern int auto_fromchild;
  16.         (void) notify_set_input_func(item,NOTIFY_FUNC_NULL,auto_fromchild);
  17.         close(auto_fromchild);
  18.         return(NOTIFY_DONE);
  19. }
  20.